package com.flyco.modules.admissionregistration.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.flyco.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 出入登记
 * @Author: flyco
 * @Date:   2023-06-02
 * @Version: V1.0
 */
@Data
@TableName("admission_registration")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="admission_registration对象", description="出入登记")
public class AdmissionRegistration {
    
	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
	private Integer id;
	/**微信openId*/
	@Excel(name = "微信openId", width = 15)
    @ApiModelProperty(value = "微信openId")
	private String identity;
	/**登记人员工作单位*/
	@Excel(name = "登记人员工作单位", width = 15)
    @ApiModelProperty(value = "登记人员工作单位")
	private String companyName;
	/**入园事项（出入园区目的）提货  送货  拜访*/
	@Excel(name = "入园事项（出入园区目的）提货  送货  拜访", width = 15)
    @ApiModelProperty(value = "入园事项（出入园区目的）提货  送货  拜访")
	private String purpose;
	/**访问者信息*/
	@Excel(name = "访问者信息", width = 15)
    @ApiModelProperty(value = "访问者信息")
	private String visitorsName;
	/**访问者联系方式*/
	@Excel(name = "访问者联系方式", width = 15)
    @ApiModelProperty(value = "访问者联系方式")
	private String visitorsPhone;
	/**随行人员信息，json格式保存*/
	@Excel(name = "随行人员信息，json格式保存", width = 15)
    @ApiModelProperty(value = "随行人员信息，json格式保存")
	private String entourage;
	/**车牌号*/
	@Excel(name = "车牌号", width = 15)
    @ApiModelProperty(value = "车牌号")
	private String carNumberPlate;
	/**接待人员*/
	@Excel(name = "接待人员", width = 15)
    @ApiModelProperty(value = "接待人员")
	private String receptionPerson;
	/**接待人员手机号*/
	@Excel(name = "接待人员手机号", width = 15)
    @ApiModelProperty(value = "接待人员手机号")
	private String receptionPersonPhone;
	/**访问者省份证*/
	@Excel(name = "访问身份证", width = 15)
    @ApiModelProperty(value = "访问者身份证")
	private String visitorsIdCard;
	/**登记时间*/
	@Excel(name = "登记时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "登记时间")
	private Date createTime;

	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "开始时间")
	@TableField(exist = false)
	private Date createTimeBegin;

	/**登记时间*/

	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "结束时间")
	@TableField(exist = false)
	private Date createTimeEnd;

	/**访问者省份证*/
	@Excel(name = "来访园区", width = 21)
	@ApiModelProperty(value = "来访园区")
	private String source;

	/**接待人部门*/
	@Excel(name = "接待人部门", width = 21)
	@ApiModelProperty(value = "接待人部门")
	private String receptionDepartment;

	/**接待人部门*/
	@Excel(name = "接待人随行人员", width = 21)
	@ApiModelProperty(value = "接待人随行人员")
	@TableField(exist = false)
	private String visitorEntourage;

	@ApiModelProperty(value = "预约时间")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date appointmentTime;

	@ApiModelProperty(value = "1 未出园  2 已出园")
	@Dict(dicCode = "admission_status")
	private Integer status;

	@ApiModelProperty(value = "离园时间")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date leaveTime;
}
